package GDoc::Job::Fetch::US::Legi::GPO::House::Reports;

use Moose;
use WWW::Mechanize;

use GDoc::Job;

extends 'GDoc::Job::Fetch::US::Legi::GPO::House';

has '_basekey' => ( is       => 'ro',
                    init_arg => undef,
                    default  => 'us/legi/house/%s/reports/%s'
                  );

has '_basemeta'=> ( is       => 'ro',
                    init_arg => undef,
                    default  => 'us/legi/house/%s/reports/meta/%s'
                  );

sub _ident { 
    my $self = shift;
    my $meta = shift;
    my $data = shift;

    $meta->{cite} =~ /Rept\.\s(?<cng>\d{3})-(?<num>\d{1,4})/;
    my $ident    = sprintf( 'HREPT-%03d-%04d', $data->{congress}, $+{num} ); 

    return $ident;
}


1;

